function createIncrementer() {
    let count = 0;
  
    function increment() {
      count++;
      console.log(count);
    }
  
    return increment;
  }
  
  const incrementer = createIncrementer();
  
  incrementer(); // 输出: 1
  incrementer(); // 输出: 2